package com.qf.cloud2204.hyst;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

@SpringBootApplication
@EnableHystrix  // 开启hystrix功能
@EnableHystrixDashboard  // 开启 监控页面功能
@ServletComponentScan("com.qf.cloud2204.hyst.servlet")  // 扫描servlet
public class HystApp {
    public static void main(String[] args) {
        SpringApplication.run(HystApp.class,args);
    }
}
